<?php

/**
 * 轮播图
 */

namespace app\api\controller;

use app\common\controller\ApiController;
use think\Exception;
use app\api\model\Banner as BannerModel;

class Banner extends ApiController {

//    protected $notNeedToken = ['gethousebanner'];

    protected $notNeedPhone = ['gethousebanner'];

    protected $isArrayResult = ['gethousebanner'];

    /**
     * 房源banner
     * @return false|string
     */
    public function getHouseBanner() {
        try {
            $BannerModel = new BannerModel();
            $data = $BannerModel->getHouseBanner();
            return $this->resData('success', $data);
        } catch (Exception $e) {
            return $this->resErr($e->getMessage(), $e->getCode());
        }
    }

}
